From: Georges Basile Stavracas Neto Date: Tue, 2 Mar 2021 22:49:56 +0000 (-0300) Subject: panel: Bind style to corners' style X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~193 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=72505227b7c80f48286d75c5b11a061a943c1286;p=gnome-shell.git panel: Bind style to corners' style There's this little hack that we do to match the panel transition from transparent to black with leaving the overview via swipe down. The only problem is that, while the duration of the panel transition itself is matches, the corners don't, and they get out of sync. This isn't very noticeable with the swipe gesture, but it'll be much more prominent when booting straight into the overview. Bind the 'style' property of the panel to the corners', so that the transition duration hack applies to all of them. Part-of: --- diff --git a/js/ui/panel.js b/js/ui/panel.js index ea29a9b48..cfde06e28 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -756,9 +756,11 @@ class Panel extends St.Widget { this.add_child(this._rightBox); this._leftCorner = new PanelCorner(St.Side.LEFT); + this.bind_property('style', this._leftCorner, 'style', GObject.BindingFlags.SYNC_CREATE); this.add_child(this._leftCorner); this._rightCorner = new PanelCorner(St.Side.RIGHT); + this.bind_property('style', this._rightCorner, 'style', GObject.BindingFlags.SYNC_CREATE); this.add_child(this._rightCorner); Main.overview.connect('showing', () => {